<?php
/**
 * @version SVN: $Id$
 * @package    fmcSeminaire
 * @subpackage Base
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Ludovic Launer {@link }
 * @author     Created on 10-Nov-2010
 * @license    GNU/GPL
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

//-- Add CSS
JHTML::stylesheet('default.css', 'administrator/components/com_fmcseminaire/assets/css/');

/**
 *  Require the base controller.
 */
require_once JPATH_COMPONENT.DS.'controller.php';

//-- Require specific controller if requested
if( $controller = JRequest::getCmd('controller'))
{
    $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';

    if( file_exists($path))
    {
        require_once $path;
    } else
    {
        $controller = '';
    }
}

//-- Create the controller
$classname = 'fmcSeminaireListController'.$controller;
if( JRequest::getCmd('controller')=='analyse')
	$classname = 'fmcSeminaireAnalyseController'.$controller;
	
$controller = new $classname();

//-- Perform the Request task
$controller->execute(JRequest::getCmd('task'));

//-- Redirect if set by the controller
$controller->redirect();
